<?php
require_once '../../bbs/include/common.inc.php';

$id = intval( $_GET["id"] );

if( $id > 0 ){
	$sql = "delete from article where id = '".$id."' limit 1";
	$query = $db->query($sql);
}

?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
	alert("指定文章删除成功!");
	location.href="list.php";
</script>